package push.tools.service.api;


import jakarta.servlet.http.HttpServletRequest;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import push.tools.service.framework.PostController;

import java.util.HashMap;

@RestController
@RequestMapping(value = "/main", produces = {"application/json;charset=UTF-8"})
public class MAIN_000_000_000 extends PostController {

    private static final Logger logger = LoggerFactory.getLogger(MAIN_000_000_000.class);

    //session接口
    @PostMapping(value = "/000_000_000")
    public String doPost(HttpServletRequest request) {
        return handleRequest(request);
    }

    @Override
    protected String postRequest(HashMap<String, String> requestParam) {
        String requestBody = requestParam.get("requestBody");
        logger.error(requestBody);
        //封装响应体
        HashMap<String, String> resMap = new HashMap<>();
        resMap.put("test", "请求成功测试");
        return generateSucceed(resMap);
    }
}
